/* 登录页面 - 简洁现代设计 */
.login-container {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景设计 */
.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #f093fb 50%, 
    #f5576c 75%, 
    #4facfe 100%);
  opacity: 0.9;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 200px 200px;
  animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

/* 主内容区 */
.login-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  align-items: center;
}

/* 品牌区域 */
.brand-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  padding: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.logo-icon img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.logo-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  width: 2rem;
  text-align: center;
}

/* 登录区域 */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 登录头部 */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mobile-logo {
  display: none;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mobile-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 0.75rem;
}

.mobile-logo h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

.login-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.login-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* 表单样式 */
.login-form {
  width: 100%;
}

.login-form .ant-form-item {
  margin-bottom: 1.5rem;
}

.login-form .ant-input,
.login-form .ant-input-password {
  /* height: 48px; */
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.login-form .ant-input:focus,
.login-form .ant-input-password:focus,
.login-form .ant-input-focused,
.login-form .ant-input-password-focused {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form .ant-input-prefix {
  color: #9ca3af;
  margin-right: 8px;
}

.login-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.forgot-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #4f46e5;
}

.login-button {
  height: 48px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.login-button:active {
  transform: translateY(0);
}

/* 响应式设计 */

/* 平板横屏 (iPad Pro, iPad Air) */
@media (max-width: 1024px) and (min-width: 769px) {
  .login-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
  }
  
  .brand-section {
    text-align: center;
    padding: 1rem;
  }
  
  .brand-logo {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .brand-features {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  
  .login-card {
    max-width: 480px;
  }
}

/* 平板竖屏和手机 */
@media (max-width: 768px) {
  .login-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem;
  }
  
  .brand-section {
    display: none;
  }
  
  .mobile-logo {
    display: flex;
  }
  
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    margin: 0;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
}

/* iPad 专门适配 */
@media (max-width: 1024px) and (min-width: 768px) and (orientation: landscape) {
  .login-container {
    padding: 1rem;
  }
  
  .login-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
  }
  
  .brand-section {
    padding: 1.5rem;
  }
  
  .login-card {
    max-width: 360px;
    padding: 2rem;
  }
  
  .logo-title {
    font-size: 1.75rem;
  }
  
  .brand-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) and (min-width: 768px) and (orientation: portrait) {
  .login-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
  }
  
  .brand-section {
    text-align: center;
    padding: 1rem 0;
  }
  
  .brand-logo {
    justify-content: center;
  }
  
  .brand-features {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .login-container {
    padding: 0.5rem;
  }
  
  .login-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .login-title {
    font-size: 1.25rem;
  }
  
  .login-subtitle {
    font-size: 0.875rem;
  }
}
